package com.spic.business.alarm.domain;

import com.spic.business.alarm.config.Device;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 表面测点信息表
 */
@Table(name = "SURF_Device")
public class SurfDevice extends MasBaseData implements Serializable {
    @Column(name = "DeviceID")
    private Integer deviceId;

    @Column(name = "SectionID")
    private Integer sectionid;

    @Column(name = "MonitorDeviceCode")
    private String monitordevicecode;

    @Column(name = "DeviceUniqueID")
    private String deviceuniqueid;

    @Column(name = "DeviceCode")
    private String devicecode;

    @Column(name = "DeviceName")
    private String devicename;

    @Column(name = "OrginV1")
    private BigDecimal orginv1;

    @Column(name = "OrginV2")
    private BigDecimal orginv2;

    @Column(name = "OrginV3")
    private BigDecimal orginv3;

    @Column(name = "OrginV4")
    private BigDecimal orginv4;

    @Column(name = "OrginV5")
    private BigDecimal orginv5;

    @Column(name = "UseYn")
    private Boolean useyn;

    @Column(name = "ScrX")
    private BigDecimal scrx;

    @Column(name = "ScrY")
    private BigDecimal scry;

    @Column(name = "CreateUserID")
    private Integer createuserid;

    @Column(name = "CreateTime")
    private Date createtime;

    @Column(name = "ModifyUserID")
    private Integer modifyuserid;

    @Column(name = "ModifyTime")
    private Date modifytime;

    @Column(name = "Lon")
    private BigDecimal lon;

    @Column(name = "Lat")
    private BigDecimal lat;

    private static final long serialVersionUID = 1L;

    @Transient
    private Device configDevice;

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public void setSectionid(Integer sectionid) {
        this.sectionid = sectionid;
    }

    public void setMonitordevicecode(String monitordevicecode) {
        this.monitordevicecode = monitordevicecode;
    }

    public void setDeviceuniqueid(String deviceuniqueid) {
        this.deviceuniqueid = deviceuniqueid;
    }

    public void setDevicecode(String devicecode) {
        this.devicecode = devicecode;
    }

    public void setDevicename(String devicename) {
        this.devicename = devicename;
    }

    public void setOrginv1(BigDecimal orginv1) {
        this.orginv1 = orginv1;
    }

    public void setOrginv2(BigDecimal orginv2) {
        this.orginv2 = orginv2;
    }

    public void setOrginv3(BigDecimal orginv3) {
        this.orginv3 = orginv3;
    }

    public void setOrginv4(BigDecimal orginv4) {
        this.orginv4 = orginv4;
    }

    public void setOrginv5(BigDecimal orginv5) {
        this.orginv5 = orginv5;
    }

    public void setUseyn(Boolean useyn) {
        this.useyn = useyn;
    }

    public void setScrx(BigDecimal scrx) {
        this.scrx = scrx;
    }

    public void setScry(BigDecimal scry) {
        this.scry = scry;
    }

    public void setCreateuserid(Integer createuserid) {
        this.createuserid = createuserid;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public void setModifyuserid(Integer modifyuserid) {
        this.modifyuserid = modifyuserid;
    }

    public void setModifytime(Date modifytime) {
        this.modifytime = modifytime;
    }

    public void setLon(BigDecimal lon) {
        this.lon = lon;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }

    public void setConfigDevice(Device configDevice) {
        this.configDevice = configDevice;
    }


    public String toString() {
        return "SurfDevice(deviceId=" + getDeviceId() + ", sectionid=" + getSectionid() + ", monitordevicecode=" + getMonitordevicecode() + ", deviceuniqueid=" + getDeviceuniqueid() + ", devicecode=" + getDevicecode() + ", devicename=" + getDevicename() + ", orginv1=" + getOrginv1() + ", orginv2=" + getOrginv2() + ", orginv3=" + getOrginv3() + ", orginv4=" + getOrginv4() + ", orginv5=" + getOrginv5() + ", useyn=" + getUseyn() + ", scrx=" + getScrx() + ", scry=" + getScry() + ", createuserid=" + getCreateuserid() + ", createtime=" + getCreatetime() + ", modifyuserid=" + getModifyuserid() + ", modifytime=" + getModifytime() + ", lon=" + getLon() + ", lat=" + getLat() + ", configDevice=" + getConfigDevice() + ")";
    }

    public Integer getDeviceId() {
        return this.deviceId;
    }

    public Integer getSectionid() {
        return this.sectionid;
    }

    public String getMonitordevicecode() {
        return this.monitordevicecode;
    }

    public String getDeviceuniqueid() {
        return this.deviceuniqueid;
    }

    public String getDevicecode() {
        return this.devicecode;
    }

    public String getDevicename() {
        return this.devicename;
    }

    public BigDecimal getOrginv1() {
        return this.orginv1;
    }

    public BigDecimal getOrginv2() {
        return this.orginv2;
    }

    public BigDecimal getOrginv3() {
        return this.orginv3;
    }

    public BigDecimal getOrginv4() {
        return this.orginv4;
    }

    public BigDecimal getOrginv5() {
        return this.orginv5;
    }

    public Boolean getUseyn() {
        return this.useyn;
    }

    public BigDecimal getScrx() {
        return this.scrx;
    }

    public BigDecimal getScry() {
        return this.scry;
    }

    public Integer getCreateuserid() {
        return this.createuserid;
    }

    public Date getCreatetime() {
        return this.createtime;
    }

    public Integer getModifyuserid() {
        return this.modifyuserid;
    }

    public Date getModifytime() {
        return this.modifytime;
    }

    public BigDecimal getLon() {
        return this.lon;
    }

    public BigDecimal getLat() {
        return this.lat;
    }

    public Device getConfigDevice() {
        return this.configDevice;
    }
}

